package com.czh.subject.infra.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.czh.subject.infra.basic.entity.SubjectCategory;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 题目分类(SubjectCategory)表数据库访问层
 *
 * @author caozaihui
 * @since 2024-07-25 01:25:09
 */
@Mapper
public interface SubjectCategoryMapper extends BaseMapper<SubjectCategory> {

     /** 
        * 
        * @param subjectCategory 实例对象
        * @author caozaihui  
        * @description  分页查询数据
        * @date 2024-07-25 01:25:09
        * @return 实例对象
     */
    List<SubjectCategory> selectSubjectCategoryList(SubjectCategory subjectCategory);

    @MapKey("id")
    List<Map<String,Long>> getCategoryCountByCondition();
}

